package com.itheima.dao;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao {

    public void save();

    public User findByUsernameAndPassword(String username,String password);
    @Select("select * from t_user")
    public List<User> findAll();
    public Long insert(User user);

    public void saveUserRoleRel(Long id, Long[] roleIds);

    public void delete(Long userId);

    public void deleteUserRoleRel(Long userId);
}
